package oms.dao;

import java.util.List;
import oms.entities.*;

public interface DAORepo {
	
	public List<User> getUsers(Paging page);
	public User create(User user);
	public User getById(Long id);
	
	// Should we write like this?
	public User getByUserName(String userName);
	public User getByFirstName(String firstName);//user doesn't have firstName
	public User getByLastName(String lastName);//user doesn't have lastName
	public User getByRole(Role role);
	//
	
	public User update(User user);
	public User delete(Long id);
	public User duplicate(Long id);
	
}
